package com.dk.wiki.service;

import com.dk.wiki.domain.Demo;
import com.dk.wiki.mapper.DemoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: ldk
 * 描述: TODO
 */
@Service
public class DemoService {

    @Resource // jdk所带的注解
    // @Autowired springboot所带的注解
    private DemoMapper demoMapper;

    public List<Demo> list(){
        return demoMapper.selectByExample(null);
    }
}
